{include file="public/toper"/}
<div class="x-body">
    <form action="" method="post" class="layui-form" id="forms">
        <div class="layui-form-item">
            <label for="name" class="layui-form-label">
                <span class="x-red">*</span>返现用户
            </label>
            <div class="layui-input-inline">
                <input type="text" value="" id="name" name="name" required="" lay-verify="required" readonly="readonly" autocomplete="off" class="layui-input">
                <input type="hidden" value="" id="userid" name="user_id">
            </div>
            <div class="layui-form-mid layui-word-aux">
                <span class="x-red" id="choice">选择</span>
            </div>
        </div>

        <div class="layui-form-item">
            <label for="money" class="layui-form-label">
                <span class="x-red">*</span>返现金额
            </label>
            <div class="layui-input-inline">
                <input type="number" value="" id="money" name="money" required="" lay-verify="required" autocomplete="off" class="layui-input">
            </div>
            <div class="layui-form-mid layui-word-aux">
                <span class="x-red">*</span>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">
                <span class="x-red">*</span>返现说明
            </label>
            <div class="layui-input-inline">
                <textarea name="content" required lay-verify="required" placeholder="请输入" class="layui-textarea"></textarea>
            </div>
            <div class="layui-form-mid layui-word-aux">
                <span class="x-red">*</span>255个字符
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label"></label>
            <button  class="layui-btn" lay-filter="formSubmit" lay-submit="">提交</button>
        </div>
    </form>
</div>
{include file="public/footer"/}
<script>
    layui.use('layer', function(){
        var layer = layui.layer;
        $("#choice").click(function(){
            layer.open({
                type: 2,
                title: '选择用户',
                area: ['900px', '650px'],
                fixed: false, //不固定
                maxmin: true,
                content: "{:url('User/choice')}"
            });
        });
    });
</script>